package com.zzy.furns.dao.impl;

import com.zzy.furns.dao.AdminDAO;
import com.zzy.furns.dao.BasicDAO;
import com.zzy.furns.domain.Admin;

public class AdminDAOImpl extends BasicDAO<Admin> implements AdminDAO {
    @Override
    public Admin queryAdminByAdminnameAndPassword(String adminname, String password) {
        String sql = "SELECT id,adminname,`password` FROM admin WHERE adminname = ? AND `password` = MD5(?)";
        return querySingle(sql, Admin.class, adminname, password);
    }
}
